//
//  HYWSegmentControl.m
//  test
//
//  Created by heew on 15/12/17.
//  Copyright © 2015年 heew. All rights reserved.
//

#import "HYWSegmentControl.h"

@implementation HYWSegmentControl

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)awakeFromNib {
    self.translatesAutoresizingMaskIntoConstraints = NO;
}
- (CGSize)intrinsicContentSize {
    CGSize size = [super intrinsicContentSize];
    NSLog(@"HYWSegmentControl的size%@",NSStringFromCGSize(size));
//        return CGSizeMake(300, 30);
    return size;
}

- (void)didMoveToSuperview {
    [super didMoveToSuperview];
    NSLog(@"didMoveToSuperview");
}
- (void)didMoveToWindow {
    [super didMoveToWindow];
    NSLog(@"didMoveToWindow");
}
@end
